package vip.zhenzicheng.design_patterns.state.after;

/**
 * 抽象状态类
 *
 * @author zhenzicheng
 * @date 2022-05-26 19:19
 */
public abstract class LiftState {

  //声明环境角色类变量
  protected Context context;

  public void setContext(Context context) {
    this.context = context;
  }

  //电梯开启操作
  public abstract void open();

  //电梯关闭操作
  public abstract void close();

  //电梯运行操作
  public abstract void run();

  //电梯停止操作
  public abstract void stop();
}
